import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'

export default createStore({
  state: {
    search:"",
    token:0
  },
  mutations: {
    setToken(state,s){
      state.token = s
    },
    setSearch(state,n){
      state.search=n;
    }
  },
  plugins: [createPersistedState()]
})
